﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shuba.Model
{
    public class FlagFreezeInfo
    {
        public FlagFreezeInfo() { }

        public FlagFreezeInfo
        (
         Int16 FLAG
        , string FIELD
        , string ENABLED
        , string IS_ACTIVE
        , string ENTRY_BY
        , DateTime ENTRY_DATE
        , string UPDATE_BY
        , DateTime UPDATE_DATE
        )
        {
            _FLAG = FLAG;
            _FIELD = FIELD;
            _ENABLED = ENABLED;
            _IS_ACTIVE = IS_ACTIVE;
            _ENTRY_BY = ENTRY_BY;
            _ENTRY_DATE = ENTRY_DATE;
            _UPDATE_BY = UPDATE_BY;
            _UPDATE_DATE = UPDATE_DATE;

        }

        public FlagFreezeInfo
        (
         Int16 FLAG
        , string FIELD
        , string ENABLED
        , string IS_ACTIVE
        , string ENTRY_BY
        , DateTime ENTRY_DATE
        , string UPDATE_BY
        , DateTime UPDATE_DATE
        , string ACT_TYPE
        )
        {
            _FLAG = FLAG;
            _FIELD = FIELD;
            _ENABLED = ENABLED;
            _IS_ACTIVE = IS_ACTIVE;
            _ENTRY_BY = ENTRY_BY;
            _ENTRY_DATE = ENTRY_DATE;
            _UPDATE_BY = UPDATE_BY;
            _UPDATE_DATE = UPDATE_DATE;
            _ACT_TYPE = ACT_TYPE;
        }

        //[PROPERTY COMMAND]
        private Int16 _FLAG;
        public Int16 FLAG
        {
            get { return _FLAG; }
            set { _FLAG = value; }
        }

        private string _FIELD;
        public string FIELD
        {
            get { return _FIELD; }
            set { _FIELD = value; }
        }

        private string _ENABLED;
        public string ENABLED
        {
            get { return _ENABLED; }
            set { _ENABLED = value; }
        }

        private string _IS_ACTIVE;
        public string IS_ACTIVE
        {
            get { return _IS_ACTIVE; }
            set { _IS_ACTIVE = value; }
        }

        private string _ENTRY_BY;
        public string ENTRY_BY
        {
            get { return _ENTRY_BY; }
            set { _ENTRY_BY = value; }
        }

        private DateTime _ENTRY_DATE;
        public DateTime ENTRY_DATE
        {
            get { return _ENTRY_DATE; }
            set { _ENTRY_DATE = value; }
        }

        private string _UPDATE_BY;
        public string UPDATE_BY
        {
            get { return _UPDATE_BY; }
            set { _UPDATE_BY = value; }
        }

        private DateTime _UPDATE_DATE;
        public DateTime UPDATE_DATE
        {
            get { return _UPDATE_DATE; }
            set { _UPDATE_DATE = value; }
        }

        private string _ACT_TYPE;
        public string ACT_TYPE
        {
            get { return _ACT_TYPE; }
            set { _ACT_TYPE = value; }
        }

        public override string ToString()
        {
            return
            _FLAG.ToString() + " - " +
            _FIELD + " - " +
            _ENABLED + " - " +
            _IS_ACTIVE + " - " +
            _ENTRY_BY + " - " +
            _ENTRY_DATE.ToString("yyyy MMM dd hh:mm:ss") + " - " +
            _UPDATE_BY + " - " +
            _UPDATE_DATE.ToString("yyyy MMM dd hh:mm:ss");
        }
    }
}
